home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 5817 / 5817.xpi / chrome / content / confirm.xul < prev    next >
Extensible Markup Language  |  2010-02-11  |  1KB  |  38 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3.  
  4. <!DOCTYPE window SYSTEM "chrome://sqlitemanager/locale/sqlitemanager.dtd">
  5.  
  6. <dialog id="dialog-confirm" title="&window.title; - "
  7.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.     buttons="accept,cancel"
  9.     buttonlabelcancel="&confirm.button.cancel;"
  10.     buttonlabelaccept="&confirm.button.accept;"
  11.     ondialogaccept="return SmConfirm.onClose(true);"
  12.     ondialogcancel="return SmConfirm.onClose(false);"
  13.     onload="SmConfirm.onLoad();">
  14.  
  15.   <script type="application/x-javascript">
  16.   <![CDATA[
  17.     var SmConfirm = {
  18.       onLoad: function() {
  19.         if (window.arguments[3] == "alert") {
  20.           document.getElementById("dialog-confirm").buttons = "accept";
  21.           document.getElementById("dialog-confirm").getButton("accept").label = "Close";
  22.         }
  23.         document.title += " " + window.arguments[0];
  24.         document.getElementById("tbMessage").value = window.arguments[1];
  25.       },
  26.  
  27.       onClose: function(bConfirm) {
  28.         var aRetVals = window.arguments[2];
  29.         aRetVals.bConfirm = bConfirm;
  30.         return true;
  31.       }
  32.     }
  33.   ]]>
  34.   </script>  
  35.  
  36.   <textbox id="tbMessage" rows="8" multiline="true" readonly="true" width="400px"/>
  37. </dialog>
  38.